package com.hcy.rabbitruntimeapi.handler;

import com.hcy.rabbitbasicmodel.common.MyWebSocketMessage;
import com.hcy.rabbitruntimeapi.center.CenterHandlerLink;
import org.springframework.stereotype.Component;

/**
 * @Author huchenying
 * @Description
 * @Date 2022/4/1 17:34
 */
public class MyHandlerData implements Runnable{
    public CenterHandlerLink centerHandlerLink;
    public MyWebSocketMessage message;

    public MyHandlerData(CenterHandlerLink centerHandlerLink,MyWebSocketMessage message){
        this.centerHandlerLink = centerHandlerLink;
        this.message = message;
    }
    @Override
    public void run() {
        centerHandlerLink.handler(message);
    }
}
